package cn.hiapi.publics.query;

import cn.hiapi.basic.jpa.pageable.QueryWrapper;
import cn.hiapi.basic.jpa.query.BasicQuery;
import cn.hiapi.shopkeeper.enums.ActivityType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2022/12/30 23:24
 */
@Setter
@Getter
public class SearchQuery extends BasicQuery {
    @ApiModelProperty("搜索关键字")
    private String key;

    @ApiModelProperty("坐标                 ")
    private BigDecimal lng;

    private BigDecimal lat;

    @ApiModelProperty("搜索类型 默认活动, shop 商铺")
    private String type;

    @ApiModelProperty("活动类型")
    private ActivityType activityType;


    @Override
    public QueryWrapper getQueryWrapper() {
        return super.getBasicQueryWrapper();
    }
}
